import { Context } from 'koa';
import config from '../../config';

class SystemController {
    public async getDebugMode(ctx: Context) {
    try {
        let isDebug = config.debug? config.debug : false
            ctx.body = {
                code: 200,
                msg: "获取调试模式成功",
                data: {
                    isDebug: isDebug
                }
            }   
        } catch (err) {
            console.log("获取调试模式失败：" + err)
        }
    }
         
}

export default new SystemController();